package org.neurone.userspace.userinfo.impl;

import java.util.List;

import org.neurone.domain.Message;
import org.neurone.userspace.dao.MessageDao;
import org.neurone.userspace.userinfo.MessageMgr;
import org.neurone.util.criteria.Criteria;
import org.neurone.util.criteria.CriteriaOperator;
import org.neurone.util.criteria.impl.CriteriaKeyValue;

public class MessageMgrLocal implements MessageMgr {
	private MessageDao messageDao;
	
	public MessageDao getMessageDao() {
		return messageDao;
	}

	public void setMessageDao(MessageDao messageDao) {
		this.messageDao = messageDao;
	}

	@Override
	public List<Message> getAll(int pageSize, int pageIndex) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Message> getAllNews(int pageSize, int pageIndex) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Message> getAllScrip(int pageSize, int pageIndex) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Message> getAllTask(int pageSize, int pageIndex) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Message> getPersonalAll(String userName, int pageSize, int pageIndex) {
		Criteria c = new CriteriaKeyValue("messageType", CriteriaOperator.EQUALS, "");
		c.and(new CriteriaKeyValue("to", CriteriaOperator.EQUALS, userName));
		
		return null;
	}

	@Override
	public List<Message> getPersonalNews(String userName, int pageSize, int pageIndex) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Message> getPersonalScrip(String userName, int pageSize, int pageIndex) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Message> getPersonalTask(String userName, int pageSize, int pageIndex) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void send() {
		// TODO Auto-generated method stub

	}

}
